<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<title></title>
		<link rel="stylesheet" href="css/appdownstyle.css" />
	</head>

	<body>
		<div class="content">
			<div class="whitebak">
				<img src="img/whitebak.png" />
			</div>
			<div class="app">
				<img src="img/app2.png" style="border-radius: 10px;" />
				<div class="appname">唐山住房保障</div>
			</div>
			<div class="appbtn">
				<img onclick="androidClick();" src="img/androidBtn.png" />
			</div>
			<div class="appbtn2">
				<img onclick="iosClick();" src="img/iosbtn.png" />
			</div>
		</div>
		<div class="cover"></div>
		<div class="covers3">
			<div class="jiantou">
				<img src="img/arrow.png" />
			</div>
			<div class="tip1">
				<img src="img/tip1.png" />
			</div>
			<div class="tip2">
				<img src="img/tip2.png" />
			</div>
			<div class="tip3">
				<img src="img/tip3.png" />
			</div>
		</div>

		<script src="js/jquery-1.10.2.js"></script>
		<script type="text/javascript">
			function androidClick() {
                window.location.href="https://www.baidu.com/"
				<!-- alert("android下载"); -->
			}

			function iosClick() {
                window.location.href="itms-services:///?action=download-manifest&url=https://gitee.com/kkyli/iosDown/blob/master/tszfbz.plist"
			}
		</script>

		<script>
			var isWeiXin = isWeiXin();
			var isIos = isIos();
			var isAndroid = isAndroid();
			if(isWeiXin) {
				$(".covers3").show();
				if(isIos) {
					$(".tip2").hide();
				}
				if(isAndroid) {
					$(".tip3").hide();
				}
			}

			//是否微信
			function isWeiXin() {
				var ua = window.navigator.userAgent.toLowerCase();
				if(ua.match(/MicroMessenger/i) == 'micromessenger') {
					return true;
				} else {
					return false;
				}
			}

			//是否苹果
			function isIos() {
				var ua = window.navigator.userAgent.toLowerCase();
				if(!!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) || !!ua.match(/\(i[^;]+;( U;)? cpu.+mac os x/)) {
					return true;
				} else {
					return false;
				}
			}

			//是否安卓
			function isAndroid() {
				var ua = window.navigator.userAgent.toLowerCase();
				if(ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1 || ua.indexOf('android') > -1) {
					return true;
				} else {
					return false;
				}
			}
		</script>
	</body>

</html>